using System.Collections;
using System.Collections.Generic;
using UnityEngine;

[System.Serializable]
public class MapNode
{
    public string nodeId;
    public string nodeName;
    public NodeType nodeType;
    public Vector2 position;
    public List<string> neighborIds;
    public bool isVisited;

    // 节点特定数据
    public List<string> enemyIds;     // 战斗节点的敌人
    public List<string> eventIds;     // 事件节点的事件
    public string shopId;             // 商店ID

    public MapNode(string id, string name, NodeType type, Vector2 pos)
    {
        nodeId = id;
        nodeName = name;
        nodeType = type;
        position = pos;
        neighborIds = new List<string>();
        isVisited = false;
        enemyIds = new List<string>();
        eventIds = new List<string>();
    }
}